Viudes Posted September 2, 2017 Share Posted September 2, 2017 Why warpPlayerIntoVehicle not work? function start(hitElement) pelaaja = hitElement for i,v in pairs(Kohteet) do Player = getLocalPlayer() Nimi = guiGridListGetItemText (MissionList, guiGridListGetSelectedItem (MissionList ), 1) KoodiNimi = guiGridListGetSelectedItem (MissionList ) payout = guiGridListGetItemText (MissionList, guiGridListGetSelectedItem (MissionList ), 2) if KoodiNimi > 0 then Rekka = createVehicle (515,2451.3999023438,-2091.6999511719,14.699999809265,0,0,90) Vaunu = createVehicle (435,2460.6591796875,-2091.369140625,14.193350791931,0,0,90) warpPlayerIntoVehicle (player,Rekka) outputChatBox("Destination: "..(Nimi).." Payout: "..payout.."$",0,255,0) if KoodiNimi == 1 then Link to comment
Rockyz Posted September 2, 2017 Share Posted September 2, 2017 (edited) This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use warpPedIntoVehicle instead. + warpPlayerIntoVehicle (player,Rekka) player = ? Edited September 2, 2017 by #,+( _xiRoc[K]; > Link to comment
Viudes Posted September 2, 2017 Author Share Posted September 2, 2017 2 minutes ago, #,+( _xiRoc[K]; > said: This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use warpPedIntoVehicle instead. but i cant warp players with that Link to comment
Rockyz Posted September 2, 2017 Share Posted September 2, 2017 2 minutes ago, Viudes said: but i cant warp players with that ped is player Link to comment
ForLaXPy Posted September 2, 2017 Share Posted September 2, 2017 Well it wont work bec the script got a mistake here : Player = getLocalPlayer() it should be warpPedIntoVehicle ( Player, Rekka ) you should be carefull for caps and stuffs Link to comment
Dimos7 Posted September 2, 2017 Share Posted September 2, 2017 first you can't put client and server functions together lesson 1 people Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now