Hello that such as are I hope that well, the reason for thispublication is that I want to create a vehicle through aguiCreateButton and a guiCreateEdit
---------------------------------------------------------------------------------------------------------------------------------
Client.lua
--- Part of the function in the onClientGUIClick
------------------------------------------------------------------------------------------------------------------------------
elseif source == vehiclee then
local CreateCarro = guiGetText(vehiclees)
triggerServerEvent("CrearVehiculo", localPlayer, PlayerO,CreateCarro)
---------------------------------------------------------------------------------------------------------------------------------
Server.lua
function CrearCarroMod (nickC, CarroVehicle)
playeer = getPlayerFromName(nickC)
createVehicle(getPlayerFromName(nickC), CarroVehicle)
outputChatBox("#FF0000"..getPlayerName(source).. " #00ff00Te Ha Dado Un "..CarroVehicle.."%", playeer, 255, 0, 0, true)
outputChatBox("#00ff00Has Dado Un "..CarroVehicle.."% #00ff00al Jugador #FF0000"..getPlayerName(playeer).."", source, 255, 0, 0, true)
end
addEvent("CrearVehiculo", true)
addEventHandler("CrearVehiculo", root, CrearCarroMod)
------------------------------------------------------------------------------------------------------------------------
This is my code in the client and server.