Plate Posted March 13, 2013 Posted March 13, 2013 function getTheData() if getElementData(localPlayer, "Sniper Rifle") then local row1 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row1, 1, "Sniper Rifle", false, false) elseif getElementData(localPlayer, "M4") then local row2 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row2, 1, "M4", false, false) elseif getElementData(localPlayer, "MP5") then local row3 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row3, 1, "MP5", false, false) elseif getElementData(localPlayer, "Rocket Launcher") then local row4 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row4, 1, "Rocket Launcher", false, false) end end
Castillo Posted March 13, 2013 Posted March 13, 2013 "localPlayer" es una variable del MTA, no hace falta definirla. @Plate: Porque no lo probas y listo?
Plate Posted March 13, 2013 Author Posted March 13, 2013 Probá onVehicleDamage... WTF Ya lo probe y no anda
Renkon Posted March 13, 2013 Posted March 13, 2013 Probá onVehicleDamage... WTF Ya lo probe y no anda LOL me confundi de thread
NodZen Posted March 13, 2013 Posted March 13, 2013 "localPlayer" es una variable del MTA, no hace falta definirla.@Plate: Porque no lo probas y listo? Ah! ok, No sabia .
Recommended Posts