Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Convert string to function
- -- Setup:
- gSetup = {
- -- function (string), function arguments:
- {"TextPrintString",{"Hello World",2,1}},
- {"ClockSet",{8,45}},
- {"PlayerKilled",{""}},
- {"PedSetWeapon",{gPlayer,305,50}},
- {"ForceStartMission",{"6_B"}},
- }
- -- Main function:
- function main()
- Wait(450)
- while true do
- if IsButtonBeingPressed(3,0) then
- -- Random call:
- local Random = math.random(1,table.getn(gSetup))
- _G[gSetup[Random][1]](unpack(gSetup[Random][2]))
- end
- Wait(0)
- end
- end
Add Comment
Please, Sign In to add comment