Jump to content

rpgforlife

Members
  • Posts

    88
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

rpgforlife's Achievements

Transformer

Transformer (11/54)

0

Reputation

  1. look if you want scripts, add me on skype ask for the resources and if i have them i send screenshots i dont ask for opinions of other people how they want to see it.
  2. To lazy to make screens of all scripts if you want some screens of scripts i can send them om skype
  3. Do you need RPG resource for a low price? Contact me then skype: jordyklabbers
  4. Anyone else how to fix it, its still not fixed
  5. fixed, srry for this topic now
  6. i have an problem. when i spawn as cop for example i have a blip with blue color but when i reconnect the blip don't comes back. How to fix this ;o? i tried many things
  7. I have a problem with my "bankrob" safe elseif theDoor == "Safe1" then setWantedLevel(source, safe1) outputChatBox("*911* Safe 1 is open of the bankrob in Whetstone!",0,255,0) destroyElement(Safe1marker) for i,p in ipairs(getElementsWithinColShape("player")) do local account = getPlayerAccount(p) if getAccountData(account, "gang") then r,g,b = getPlayerNametagColor(p) givePlayerMoney(p, math.random(50000,70000)) end end but it doesn't take the gang to give the money (function name is) : function(theDoor) errors: WARNING: saverob\saverob_server.lua:181: Bad argument @ 'getAccountData' [expected account at argument 1, got boolean] WARNING: saverob\saverob_server.lua:13: Bad agrument @ 'unbindKey' [Expected string at argument 3, got function]
  8. Hello, I took a script from community: https://community.multitheftauto.com/index.php?p=resources&s=details&id=546 its gave me this error WARNING: Database\database.lua:37: Database connection not closed. No connection or connection corrupted ERROR: Database\database.lua:16: attempt to call global 'mysql_connect' (a nil value) Means this that my settings are fault ?
  9. Can anyone make a script for me that saves stars after quit/join i tried every save script on community but it doesn't work exports must be something like: exports.police:setWantedLevel feel free to leave a comment below Regards, RPGFORLIFE
  10. Does anyone have an ingame script complider so i don't need to do every server side of my script to complide single on the internet. regards,
  11. I need this kind of lines in the script to respawn the occopied cars into the save disk -[[elseif getElementData(v, "personalVehicle") then exports.Mylifehousing:vehicleRecache(v)]]-- it doesn't respawn in the save disk if i use that code from yours
  12. it works but now the part with : -[[elseif getElementData(v, "personalVehicle") then exports.Mylifehousing:vehicleRecache(v)]]-- doesn't work
  13. Why does all my cars destroyed when i want to respawn them? I want to respawn them, not to destroy them totally There are no errors in debugscript script respawnlock = false addEventHandler("onResourceStart", resourceRoot, function() mainTimer = setTimer(respawnVehicles, 900000, 0) end) function respawnVehicles() if not respawnlock then respawnlock = true exports.command:sendMessage("Respawning all unoccupied vehicles in 30 seconds!", 0, 255, 0, root) setTimer ( function(msg, target, r, g, b) exports.command:sendMessage(msg, r, g, b, target) end , 10000, 1, "Respawning all unoccupied vehicles in 20 seconds!", getRootElement(), 0, 255, 0 ) setTimer ( function(msg, target, r, g, b) exports.command:sendMessage(msg, r, g, b, target) end, 20000, 1, "Respawning all unoccupied vehicles in 10 seconds!", getRootElement(), 0, 255, 0 ) setTimer ( function(msg, target, r, g, b) exports.command:sendMessage(msg, r, g, b, target) end, 25000, 1, "Respawning all unoccupied vehicles in 5 seconds!", getRootElement(), 0, 255, 0 ) setTimer ( vehrestask, 30000, 1) resetTimer(mainTimer) end end function respawnCommand(player) if not respawnlock then local accName = getAccountName(getPlayerAccount(player)) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? respawnVehicles() end else exports.command:sendMessage("*vehicles* Wait for the current respawn to end!", 0, 255, 0, player) end end addCommandHandler("vehiclerespawn", respawnCommand) function vehrestask() local resVehicles = getElementsByType("vehicle") for i,v in ipairs(resVehicles) do local occupants = getVehicleOccupants(v) -- Get all vehicle occupants local occupied = false if occupants then for seat, occupant in pairs(occupants) do if occupant then occupied = true break end end end if getVehicleController(v) then occupied = true end if not occupied then if getElementID(getElementParent(getElementParent(v))) ~= "Admin" then respawn = respawnVehicle(v) if not respawn then destroyElement(v) else destroyElement(v) end --[[elseif getElementData(v, "personalVehicle") then exports.housing:vehicleRecache(v)]]-- else if not getElementData(v, "personalVehicleID") then destroyElement(v) end end end end if getResourceState(getResourceFromName("publicvehicles")) == "running" then exports.publicvehicles:spawnPublicCars() end exports.command:sendMessage("All unoccupied vehicles have been respawned!", 0, 255, 0, root) respawnlock = false end
×
×
  • Create New...