
xUltimate
Members-
Posts
92 -
Joined
-
Last visited
Everything posted by xUltimate
-
No there in a seperate file eg. elegy2.txd or jester3.txd
-
So I know you can replace the DFF and TXD of a vehicle, but can you replace the paintjob of a vehicle? Eg. I want to put this skin in for the elegy. http://img248.imageshack.us/img248/5466/gallery25j.jpg
-
That would be perfect!
-
Affirmitive. EDIT: fail spelling.
-
is there any objects that would fit just right there to cover it cause I have the other destroyed replaced lookin like this
-
Is it possible to make this building not destroyed? because I know thats its not normally destroyed.
-
Ye well my localhost Phpmyadmin says: "SELECT * FROM `wcf1_group` ORDER BY `wcf1_group`.`groupID` ASC LIMIT 0 , 30" and i saw this ""UPDATE vehicles SET impounded = 0 WHERE vehicleID = " .. data.vehicleID" so i figured that would work... but i am 100% new to MySQL so lol.
-
I wanted to make a impound system, but I get the "Critical Error" in my system. addCommandHandler( "impound", function( player, commandName ) local vehicle = getPedOccupiedVehicle( player ) if vehicle then local data = vehicles[ vehicle ] if data then if exports.sql:query_free( "SELECT * FROM `vehicles`, impounded = 0 WHERE vehicleID =" .. data.vehicleID ) then if data.vehicleID < 0 then outputChatBox( "Your temporary vehicle " .. data.vehicleID .. " (" .. getVehicleName( vehicle ) .. ") can't be impounded.", player, 255, 0, 0 ) elseif ( data.characterID > 0 and exports.factions:isPlayerInFaction( player, 4 ) or exports.factions:isPlayerInFaction( player, 1 ) or hasObjectPermissionTo( player, "command.createvehicle", false )) then local x, y, z = getElementPosition( vehicle ) local rx, ry, rz = getVehicleRotation( vehicle ) local success, error = exports.sql:query_free( "UPDATE vehicles SET respawnPosX = " .. x .. ", respawnPosY = " .. y .. ", respawnPosZ = " .. z .. ", respawnRotX = " .. rx .. ", respawnRotY = " .. ry .. ", respawnRotZ = " .. rz .. ", respawnInterior = " .. getElementInterior( vehicle ) .. ", respawnDimension = " .. getElementDimension( vehicle ) .. ", impounded = 1 WHERE vehicleID = " .. data.vehicleID ) if success then setVehicleFrozen(vehicle, true) setVehicleRespawnPosition( vehicle, x, y, z, rx, ry, rz ) data.respawnInterior = getElementInterior( vehicle ) data.respawnDimension = getElementDimension( vehicle ) saveVehicle( vehicle ) outputChatBox( "Vehicle " .. data.vehicleID .. " (" .. getVehicleName( vehicle ) .. ") has been impounded.", player, 0, 255, 0 ) else outputChatBox( "Impounding Vehicle failed.", player, 255, 0, 0 ) end else outputChatBox( "You cannot impound vehicles.", player, 255, 0, 0 ) end elseif exports.sql:query_free( "SELECT * FROM `vehicles`, impounded = 1 WHERE vehicleID =" .. data.vehicleID ) then if data.vehicleID < 0 then outputChatBox( "Your temporary vehicle " .. data.vehicleID .. " (" .. getVehicleName( vehicle ) .. ") can't be impounded.", player, 255, 0, 0 ) elseif ( data.characterID > 0 and exports.factions:isPlayerInFaction( player, 4 ) or exports.factions:isPlayerInFaction( player, 1 ) or hasObjectPermissionTo( player, "command.createvehicle", false ) ) then local success, error = exports.sql:query_free( "UPDATE vehicles SET impounded = 0 WHERE vehicleID = " .. data.vehicleID ) if success then setVehicleFrozen(vehicle, false) outputChatBox( "Vehicle " .. data.vehicleID .. " (" .. getVehicleName( vehicle ) .. ") has been unimpounded.", player, 0, 255, 0 ) else outputChatBox( "Unimpounding vehicle failed.", player, 0, 255, 0 ) end else outputChatBox( "You cannot unimpound vehicles.", player, 255, 0, 0 ) end else outputChatBox( "Critical Error.", player, 255, 0, 0 ) end end else outputChatBox( "You are not driving a vehicle.", player, 255, 0, 0 ) end end ) Apparently I did something wrong on the "if export.sql:query_free( "SELCT * FROM"" area. Much appreciated if you can help me.
-
Dude that looks epic.
-
Did you restart your server? If not. Stop the server. Edit the ACL. Start the serve.r
-
EDIT: Whoops wrong thing hang on a sec.
-
/createinterior [id] [price] [type=0 Gov, 1 House, 2 Biz] [name] Get the id's from interiors/interiorpositions.lua
-
I already debugged and everything, no errors, no nothing.
-
Coordinates look fine to me, the object isnt even moving for me, but the cmd works.
-
ye pdb1 = createObject(968, -1572.1899414063, 658.70002441406, 6.8500001907349, 0, 90, 90) pdb2 = createObject(968, -1701.4300537109, 687.65997314453, 24.670000076294, 0, 90, -90) As of now im going to sleep, got school, so ill see this tomorrow.
-
Nope, no errors.
-
Haha I fixed that problem but it was in the wrong thing, now I have this problem: The barrier will not open pdb1s = createColRectangle( -1566.64, 665.95, 7.03, 10, 7) function policeBarrier() local allPlayers = getElementsByType("player") for index,val in ipairs(allPlayers) do if exports.factions:isPlayerInFaction(val, 1 ) then moveObject(pdb1, 3000, -1572.1899414063, 658.65002441406, 6.8000001907349, 90, 0, 0) setTimer ( policeBarrierClose, 5000, 1) end end end addEventHandler ( "onColShapeHit", pdb1s, policeBarrier ) addCommandHandler("pdb", policeBarrier)
-
I have a small problem, I am trying to make it so when someone in faction 1 (SFPD) hits a area it opens the barrier, but I get this error on load: sfpd/map-outside.lua:17: Bad argument @ 'addEventHandler' The code: function policeDoor(thePlayer) pdb1s = createColRectangle( -1566.64, 665.95, 7.03, 10, 7) if exports.factions:isPlayerInFaction( thePlayer, 1 ) then moveObject(pdd1, 3000, -1620.6579589844, 688.30285644531, 10.809907913208) setTimer(policeDoorClose, 4000, 1) end end addEventHandler ( "onColShapeHit", pdb1s, policeDoor )--Line 17 addCommandHandler("pdd", policeDoor)
-
You have to manually create the interiors and pickups and stuff..
-
I have them fixed, City hall is in dimension 1, look at the interiors in 2 till you get to the one that has a popup about city hall.
-
if exports.factions:isPlayerInFaction( thePlayer, theFactionID ) then Is how I use it for certain things.
-
It's a force of habit.
-
Whats wrong with them?