Jump to content

orcun99

Members
  • Posts

    197
  • Joined

  • Last visited

Everything posted by orcun99

  1. what is wws script? sorry I am not good speak english
  2. orcun99

    Help Me

    Error: can not be repaired vehicle repair key pressure In this script for me that people have the same problem I was hoping you can fix
  3. Explores the person who gave me the script orccommand decided I wanted to add to the server, but the script still does not work I did not start working on his server 100% the same script
  4. orcun99

    Help Me

    function repairPlayerVehicle(vehicleID) if vehicleID and tonumber(vehicleID) then vehicleID = tonumber(vehicleID) local dataQuery = executeSQLQuery("SELECT * FROM `personalvehicles` WHERE `id` = ?", vehicleID) if #dataQuery == 1 then local vehicleData = dataQuery[1] if not getElementByID("personalVehicle"..vehicleID) then local damage = 100 - tonumber(vehicleData['health']) local price = damage * 50 local missingFuel = 100 - tonumber(vehicleData['fuel']) local fuelPrice = missingFuel * 10 local price = fuelPrice + price if price > 0 then if price <= tonumber(getElementData(source, "money")) then takePlayerMoney(source, price) local query = executeSQLQuery("UPDATE `personalvehicles` SET `health`=100, `fuel`=100 WHERE `id`=?", vehicleID) if query then triggerClientEvent(source, "clientRefreshVehicles", root, getVehicles(source)) exports.ORCcommands:sendMessage("Vehicle repaired successfully.", 0, 255, 0, source) else givePlayerMoney(source, price) exports.ORCcommands:sendMessage("An error occured. Please contact an HQ admin with error code PV2.", 0, 255, 0, source) end else exports.ORCcommands:sendMessage("Yeterince Paran yok fakir.", 255, 255, 0, source) end else exports.ORCcommands:sendMessage("Vehicle doesn't need repairs.", 255, 255, 0, source) triggerClientEvent(source, "clientRefreshVehicles", root, getVehicles(source)) end else exports.ORCcommands:sendMessage("Vehicle needs to be parked to be repaired.", 255, 255, 0, source) triggerClientEvent(source, "clientRefreshVehicles", root, getVehicles(source)) end else exports.ORCcommands:sendMessage("Vehicle could not be found in vehicle database!", 255, 255, 0, source) triggerClientEvent(source, "clientRefreshVehicles", root, getVehicles(source)) end end end addEvent("onPlayerRepairVehicle", true) addEventHandler("onPlayerRepairVehicle", root, repairPlayerVehicle) Repair does not fix the pressure button please help
  5. If you're saying I do not have the script, could you give?
  6. in-game map editing script I've seen this script before you share a server you 5-6? I want to Allow determine just use a miscellaneous group
  7. I do not understand much of the script I bought it with the money I'm waiting for your help
  8. Hello, I want a script / privatevehicle When you write a menu shown vehicle models that are assigned to whom should I write where I want that truck come tool by class or by individuals or by teams get the option to lock I just got to the room without menu script locking by team Can you help over here on codes vehicle1 = createVehicle(506, 2798.6005859375, 2634.900390625, 10.60000038147, 0, 0, 10.60000038147) -- This car can be toggleVehicleRespawn ( vehicle1 , true ) setVehicleRespawnDelay ( vehicle1 , 10000) -- Araç patladıktan kaç saniye sonra respawnlanacağını belirtir. setVehicleIdleRespawnDelay ( vehicle1 , 60000) -- vehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 1, 1 ) setVehicleDamageProof ( vehicle, true ) -----car won't take damage (change it to false if you want to take damage) function lockPrivate( player, seat, jacked ) if ( source == vehicle1 ) then if ( seat ~= 0 ) then -- If the seat isn't '0' ( driver's seat ) return -- Stop the function from executing. end local playerTeam = getPlayerTeam ( player ) local oldTeamName = ( playerTeam and getTeamName ( playerTeam ) or "" ) if ( oldTeamName ~= "Admins" ) then cancelEvent ( ) outputChatBox ( "Buna binmek için Admin Olman gerek. ", player, 255, 0, 0, false ) else outputChatBox ( "Tekrar Hoşgeldin.", player, 0, 255, 0, false ) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate )
  9. oHello, I need help I get $ 5 a have a script but invalid feature script: Hit somebody called when the level rises police slicend and struck searched according to their level police money income that captures person according to the level in jail level, depending on the seconds, but the script when I run does not happen script codes: CODE REMOVED BY Solidsnake14 pLS HELP ME
  10. The purpose of advertising do not just write code lua I want to help
  11. Hello everyone, I have a script, but I do not work full Can you help me? Here are the problems: 1 -) go on the disc repairing the car can not move. 2 -) Start New Life 10seconds want you to wait while counting backwards from 10 to 3 -) / createhous rebooting the server when I'm creating discs with disc mark another sign instead of coming 4 -) workplace or home when I do not get the money, although codes: removed - Moderators
  12. vehicle1 = createVehicle(587, 2803.3999023438, 2637.8999023438, 10.60000038147, 0, 0, 206) -- This car can be vehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 1, 1 ) setVehicleDamageProof ( vehicle, true ) -----car won't take damage (change it to false if you want to take damage) function lockPrivate( player, seat, jacked ) if ( source == vehicle1 ) then if ( seat ~= 0 ) then -- If the seat isn't '0' ( driver's seat ) return -- Stop the function from executing. end local playerTeam = getPlayerTeam ( player ) local oldTeamName = ( playerTeam and getTeamName ( playerTeam ) or "" ) if ( oldTeamName ~= "Admins" ) then cancelEvent ( ) outputChatBox ( "This vehicle is locked for following team: admin ", player, 255, 0, 0, false ) else outputChatBox ( "Welcome to your vehicle,Sir!", player, 0, 255, 0, false ) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate ) I set this code coordinates the team's ride in the vehicle while providing only a specific location of this tool is changed and if the driver does not want to return to again coordinate their vehicle is exploded again I want you back Changed location of the vehicle within 50 seconds if I want to return to the birthplace coordinates. Please help
×
×
  • Create New...