xXGhostXx Posted October 1, 2018 Share Posted October 1, 2018 Hi guys ! How can make Dealer Ship with account data ? Please answer me ! Link to comment
LyricalMM Posted October 3, 2018 Share Posted October 3, 2018 vehicles = { -- Table with vehicles --{model, price} } addEvent triggerEvent setElementData getElementData getVehicleName https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL/mysql_insert_id https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL/mysql_query Link to comment
Discord Moderators Pirulax Posted October 3, 2018 Discord Moderators Share Posted October 3, 2018 (edited) Why you still use that old mysql module when there's now built-in mySQL? Edited October 3, 2018 by Pirulax Link to comment
xXGhostXx Posted October 3, 2018 Author Share Posted October 3, 2018 7 hours ago, Pirulax said: Why you still use that old mysql module when there's now built-in mySQL? i dont have sql ! i use account data Link to comment
sanyisasha Posted October 3, 2018 Share Posted October 3, 2018 Need more info to help? What do you mean? Link to comment
xXGhostXx Posted October 3, 2018 Author Share Posted October 3, 2018 1 hour ago, sanyisasha said: Need more info to help? What do you mean? i need sql files and resource sql Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 bool setAccountData ( account theAccount, string key, string value ) @xXGhostXx string getAccountData ( account theAccount, string key ) Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 17 minutes ago, Knuck said: bool setAccountData ( account theAccount, string key, string value ) @xXGhostXx string getAccountData ( account theAccount, string key ) Do you have skype ? Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 1 minute ago, xXGhostXx said: Do you have skype ? Skype is dead i have discord Lua#3190 Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 Just now, Knuck said: Skype is dead i have discord Lua#3190 You can make dealer ship for me ? Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 1 minute ago, xXGhostXx said: You can make dealer ship for me ? xd wot explain it Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 3 minutes ago, Knuck said: xd wot explain it How to fix vehicle damage proof ? local vehicles = getElementsByType("vehicle") for _,vehicle in pairs(vehicles) do setVehicleDamageProof(vehicle,true) end function onDamageProof(vehicle,seat,jacked) setVehicleDamageProof(vehicle,false) end addEventHandler("onPlayerVehicleEnter",root,onDamageProof) Player when not inside the car vehicle not damage Player enter vehicle Damage on Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 15 minutes ago, xXGhostXx said: How to fix vehicle damage proof ? local vehicles = getElementsByType("vehicle") for _,vehicle in pairs(vehicles) do setVehicleDamageProof(vehicle,true) end function onDamageProof(vehicle,seat,jacked) setVehicleDamageProof(vehicle,false) end addEventHandler("onPlayerVehicleEnter",root,onDamageProof) Player when not inside the car vehicle not damage Player enter vehicle Damage on Code broken 100% put vehicles not vehicle Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 2 minutes ago, Knuck said: Code broken 100% put vehicles not vehicle Client or server side ? Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 (edited) local vehicles = createVehicle(ID,x,y,z,rot) function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,false) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) Edited October 4, 2018 by Knuck Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 Just now, Knuck said: local vehicles = createVehicle(ID,x,y,z,rot) function onDamageProof(vehicle,seat,jacked) setVehicleDamageProof(vehicles,false) end addEventHandler("onPlayerVehicleEnter",root,onDamageProof) Server side ? 2 minutes ago, Knuck said: local vehicles = createVehicle(ID,x,y,z,rot) function onDamageProof(vehicle,seat,jacked) setVehicleDamageProof(vehicles,false) end addEventHandler("onPlayerVehicleEnter",root,onDamageProof) Not Work Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 1 minute ago, xXGhostXx said: Server side ? use this ---- local vehicles = createVehicle(ID,x,y,z,rot) function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,false) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) serverside Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 1 minute ago, Knuck said: use this ---- local vehicles = createVehicle(ID,x,y,z,rot) function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,false) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) Not Work Link to comment
N3xT Posted October 4, 2018 Share Posted October 4, 2018 addEventHandler ( "onPlayerVehicleEnter", root, function ( vehicle ) setVehicleDamageProof ( vehicle, true ) end ) Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 1 minute ago, N3xT said: addEventHandler ( "onPlayerVehicleEnter", root, function ( vehicle ) setVehicleDamageProof ( vehicle, true ) end ) Not work ! I want on player vehicle enter damage proof active Seat and player not inside car vehicle damage proof off Link to comment
N3xT Posted October 4, 2018 Share Posted October 4, 2018 1 minute ago, xXGhostXx said: Not work ! I want on player vehicle enter damage proof active Seat and player not inside car vehicle damage proof off Please, use Google translator because I can't understand you. Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 1 minute ago, N3xT said: Please, use Google translator because I can't understand you. Ok ! When nobody is in the car not damaged When someone is in the car damage on Link to comment
N3xT Posted October 4, 2018 Share Posted October 4, 2018 addEventHandler ( "onPlayerVehicleEnter", root, function ( vehicle ) setVehicleDamageProof ( vehicle, false ) end ) addEventHandler ( "onPlayerVehicleExit", root, function ( vehicle ) setVehicleDamageProof ( vehicle, true ) end ) Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 1 minute ago, N3xT said: addEventHandler ( "onPlayerVehicleEnter", root, function ( vehicle ) setVehicleDamageProof ( vehicle, false ) end ) addEventHandler ( "onPlayerVehicleExit", root, function ( vehicle ) setVehicleDamageProof ( vehicle, true ) end ) Not work Link to comment
Recommended Posts