dawnking
Member
- Joined
- Jun 23, 2016
- Messages
- 176
- Reaction score
- 22
How to set dynamic values on setConditionParam?
I need to create a script that add points and in the and setConditionParam dynamically like in that example /\
Code:
setConditionParam(addon_bonus_condition, CONDITION_PARAM_SPEED, math.ceil(speed_points))
function onLogin(cid)
if isPlayer(cid) then
-- citizen
if canPlayerWearOutfitId(cid, 136, 3) or canPlayerWearOutfitId(cid, 128, 3) then
speed_points = speed_points + 10
end
I need to create a script that add points and in the and setConditionParam dynamically like in that example /\
Last edited: