Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    Pickpocketing

    line 9 player is not defined
  2. --Server Side-- go = createMarker(2093, 1434, 10, 'cylinder', 1.0, 255, 255, 0, 70) Team = createTeam('Armed Force',255,255,0) function setTeam(player) setPlayerTeam(player, Team) setElementModel(player, 285) setPlayerMoney(player, 1000) end addEventHandler('onMarkerHit',go,setTeam)
  3. You maybe are in vehicle or You aren't in group FBI or you are using it client side
  4. addEventHandler("onPlayerConnect",root, function(idiot) if idiot == 'X-SHADOW' then cancelEvent(true,"TAPL hate you :[") end end)
  5. Editing admin panel is not that easy for you. you should learn: https://wiki.multitheftauto.com
  6. haha if(getPlayerName == 'TAPL' then outputChatBox('TAPL is laying' lol) end) if getPlayerName(idiot) == 'X-SHADOW' then outputChatBox('X-SHADOW is idiot lol') end
  7. I don't want admin in your server and i don't need it. I script for money, PM me if you want.
  8. if guiGetText(edit1)== guiGetText(edit2) then
  9. TAPL

    getElementData

    I suggest to use event onClientElementDataChange https://wiki.multitheftauto.com/wiki/OnC ... DataChange
  10. TAPL

    getElementData

    do you need setTimer? when you kill player you can use event onClientPlayerWasted with guiSetText() https://wiki.multitheftauto.com/wiki/OnC ... ayerWasted
  11. TAPL

    getElementData

    Your data 'rank' return string type. Convert string to number with function tonumber if tonumber( getElementData ( localPlayer, 'rank' ) ) < 50 then outputChatBox 'hey' end If this not working try check what return data 'rank'. you forgot ")" in outputChatBox
  12. https://community.multitheftauto.com/ind ... ls&id=1995
  13. TAPL

    mute problem

    You can use trigger - setElementData
  14. twitch97@ WTF is your fucking problem whenever tell you to do a thing, you say How? omg i tell you that pool resource is not running and you said omg are you stupid or idiot or both or what?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  15. resource need other resource to can run without problem and the resource that needed aren't running What should you do in this situation? Kills YourSelf for example?
  16. ohk , how do i fix it? ohk huh? you need to kill yourself
  17. for key, value in ipairs(exports.pool:getPoolElementsByType("player")) do triggerEvent("playerJoinResourceStart", value, resource) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), resourceStart) your problem is 'pool' resource doesn't return the table why? look at the log file ERROR: exports: Call to non-running server resource (pool) [string "?"] Problem: pool resource is not running
  18. ERROR: realism-system/s_vehicle_crash.lua:11: attempt to call global [ 'getLocalPlayer' (a nil value) you are using getLocalPlayer in server-side https://wiki.multitheftauto.com/wiki/GetLocalPlayer ------------------------------------------------------- ERROR: account-system/s_account_system_sapphire.lua:94: bad argument [ #1 to 'ipairs' (table expected, got nil) sure no error? Show the code or stop waste our time i saw a lot of topics like this and there no code to check and see where is the problem how we can help you if you didn't post the code?!!!!
  19. you have to do the same as i did add the event when you create the marker.
  20. TAPL

    help

    addEvent("rep",true) addEventHandler("rep",root, function() triggerClientEvent(root,"rep1",root) end) check the code i edit it
  21. nothing in debugscript 3? realy? marker = createMarker(2055.4,-1775.08,12.6,"cylinder",2, 249, 19, 75, 190 ) teamCriminal = createTeam( "Criminal", 249, 19, 75) function robber(hitPlayer) setElementModel(hitPlayer,115) setPlayerTeam(hitPlayer,teamCriminal) setPlayerNametagColor(hitPlayer,249,19,75) if marker1 then removeEventHandler("onMarkerHit",marker1,hitstart) destroyElement(marker1) end marker1 = createMarker(2144.3,-1663.7,14.6,"cylinder",2, 249, 19, 75, 190) addEventHandler("onMarkerHit",marker1,hitstart) end addEventHandler("onMarkerHit",marker,robber) function hitstart(hitPlayer) givePlayerMoney(hitPlayer, 200) destroyElement(marker1) end
  22. you means this? https://wiki.multitheftauto.com/wiki/GetElementID
  23. What map? You didn't post any thing in this topic related to maps. check /debugscript 3
×
×
  • Create New...