Jump to content

Spice

Members
  • Posts

    51
  • Joined

  • Last visited

Spice's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. Spice

    Timer

    you're welcome i have edited my 2 nd post check it please
  2. Spice

    Timer

    thanks, another question how to make a var for set timer function setTimer (outputChatBox, 10000, 1,"Congratulations you have done the mission successfuly and got "..money" $", thePlayer) local money = setTimer (givePlayerMoney, 10000, 1, thePlayer, math.random(1000,10000)) I tried it like that but it's not working
  3. Spice

    Timer

    function marker (thePlayer) outputChatBox ("Loading the Cargo, Please wait", thePlayer, 255, 255, 0) startPaidLS (thePlayer) end function startPaidLS (thePlayer) setTimer (outputChatBox, 10000, 1,"Go to "..zone.." deliver your cargo", thePlayer) How to make the second function (startPaidLS) start after 10 second, i know i should use setTimer but how it would be like .
  4. Spice

    Progress bar

    function createprog () loadingprog = guiCreateProgressBar(475, 653, 330, 33, false) curprog = guiProgressBarGetProgress (loadingprog) setTimer (guiProgressBarSetProgress, 1000, 10, loadingprog, curprog+10) setTimer (destroyElement, 10010, 1, loadingprog) end Why the progress bar don't increase except once (to 10 %) ? Why the progress bar don't get destroyed after 10 secs
  5. Spice

    script

    I fixed it thanks bro
  6. Spice

    script

    The vehicle don't get created
  7. Spice

    script

    still the same error, i think war returns true not the vehicle
  8. Spice

    script

    Thanks man but [23:00:46] WARNING: Pilot\server.lua:18: Bad argument @ 'warpPedIntoVehicle' [Ex pected vehicle at argument 2, got boolean]
  9. Spice

    script

    -- server function Vehicle (Model) local x, y, z = getElementPosition(source) local war = createVehicle (Model, x, y, z) warpPedIntoVehicle (thePlayer, war) end addEvent ( "create", true ) addEventHandler ( "create", root, Vehicle) --Client Model = guiGridListGetItemText ( grid1, guiGridListGetSelectedItem ( grid1 ), 1 ) triggerServerEvent ( "create", resourceRoot, Model ) [22:51:54] WARNING: Pilot\server.lua:18: Bad argument @ 'warpPedIntoVehicle' [Ex pected ped at argument 1, got nil] Why it's not wokring
  10. Spice

    request

    Hello guys i want the script that outputs the money player spent or received on the bottom right screen
×
×
  • Create New...