Jump to content

KariiiM

Members
  • Posts

    1,312
  • Joined

  • Last visited

Everything posted by KariiiM

  1. KariiiM

    Level

    I suggest you to make a trigger to server side for money
  2. KariiiM

    Level

    No access needed as far as you're Admin and you're able to check the debugscript log.
  3. KariiiM

    Level

    Yes I told you, can you know explain what you want to do?
  4. KariiiM

    Solved

    So how it's going?
  5. KariiiM

    Level

    Your code is totally messy, GO in-game and Type:in mainchat /debugscript 3 or Press F8 and Type debugscript 3 Note: You must be logged in as "Admin" or change this access in ACL to default (everyone).
  6. KariiiM

    Level

    Hey first off it's okay, but what's wrong with this code?
  7. ista3mal ykon ahsan dbFunctions: dbConnect (3achan tftah connection li database) dbQuery ( 3achan ta3mal selecte li data ) dbPoll (3achan ta3mal loop li data) dbExec (3achan ta3mal INSERT wala UPDATA)
  8. No matter just post what the error witch exist in debugscript on error /warning level , copy/past.
  9. KariiiM

    Peds problem

    function cmdArmedPed(player,_) local x, y, z = getElementPosition(player) -- Get your position local thePed = createPed(0, x + 1, y, z) -- Create a CJ ped nearby setTimer ( function ( ped ) giveWeapon( ped, 31, 5000, true) -- Give him 5000 rounds of M4 -- Make him shoot continuously triggerClientEvent(root,"onPedShoot",root,ped) end, 100, 1, thePed ) end addCommandHandler("armedped", cmdArmedPed)
  10. KariiiM

    Peds problem

    Do what Bonus told you to do
  11. KariiiM

    Peds problem

    Try my code first and tell me the result btw I can't test it with you I am about to go offline
  12. KariiiM

    Peds problem

    I made the trigger for you, It should works 100% --Server side function cmdArmedPed(player,_) local x, y, z = getElementPosition(player) local thePed = createPed(0, x + 1, y, z) setTimer ( function ( ped ) giveWeapon( ped, 31, 5000, true) -- Make him shoot continuously triggerClientEvent(player,"onPedShoot",player,ped) end, 100, 1, thePed ) end addCommandHandler("armedped", cmdArmedPed) --Client side addEvent("onPedShoot",true) addEventHandler("onPedShoot",root, function (ped) setPedControlState( ped, "fire", true) end)
  13. KariiiM

    Peds problem

    Yes I was about to point that, it will return with error ,I just edited his first code that he was using it on.
  14. KariiiM

    Peds problem

    try that function cmdArmedPed(player,_) local x, y, z = getElementPosition(player) -- Get your position local thePed = createPed(0, x + 1, y, z) -- Create a CJ ped nearby setTimer ( function ( ped ) giveWeapon( ped, 31, 5000, true) -- Give him 5000 rounds of M4 setControlState( ped, "fire", true) -- Make him shoot continuously end, 100, 1, thePed ) end addCommandHandler("armedped", cmdArmedPed)
  15. Yes follow Bonus's ways, that's what I told you
  16. function detachNeon( theVehicle ) local attachedElements = getAttachedElements ( theVehicle ) --line 809 if (attachedElements) then --Maybe if you made a check if table created to be ready for loop it may solve it, try it. for i,v in ipairs ( attachedElements ) do -- line 810 detachElements ( v, theVehicle ) destroyElement ( v ) end end end addEvent( "detachNeon", true ) addEventHandler( "detachNeon", getRootElement(), detachNeon ) function onPlayerQuit() local theVehicle = getPedOccupiedVehicle ( source ) detachNeon( theVehicle ) end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit )
  17. I wrote for you an example complet it; function playerChat(msg, msgtype) if msgtype == 0 then --then make a trigger end end addEventHandler("onPlayerChat", root, playerChat) Use triggerServerEvent to pass the data betwen server and client. because onPlayerChat is server sided, to store what wrote in say chat into a grid list.
  18. You've to use onPlayerChat
  19. Can you both stop fighting ? We already helped him and the code worked for him.
  20. KariiiM

    Solved

    I really don't understand what do you mean He means, in server sided script you can look at all changed nickname In client sided you can see only your own changed nickname not all
  21. meta should be like that meta.xml not meta.xml. and the file must be in zip
×
×
  • Create New...