Frost.DEV Posted December 15, 2022 Share Posted December 15, 2022 Hello i creating a skin weapon system but dont working to removing a skin dont send debugscript 3 nothing just dont deleting skin my code: (obs: i calling all into server side he can see my skin but can't take this skin just me) ``` local engineSET = {} function SetarSkinAK(localPlayer) engineSET[localPlayer] = {} engineSET[localPlayer][1] = dxCreateShader("texturechanger.fx", 0, 100, false, "ped") engineSET[localPlayer][2] = dxCreateTexture("files/ak1.png") if engineSET[localPlayer][1] and engineSET[localPlayer][2] then dxSetShaderValue(engineSET[localPlayer][1], "TEXTURE", engineSET[localPlayer][2]) engineApplyShaderToWorldTexture(engineSET[localPlayer][1], "T1", localPlayer) end end addEvent( "DarSkin", true) addEventHandler("DarSkin", getRootElement(), SetarSkinAK) function RemoverSkin(localPlayer) destroyElement(engineSET[localPlayer][1]) destroyElement(engineSET[localPlayer][2]) engineSET[localPlayer] = nil end addEvent( "DelSkin", true) addEventHandler("DelSkin", getRootElement(), RemoverSkin) ``` Link to comment
Vampire Posted December 16, 2022 Share Posted December 16, 2022 Hello @Frost.DEV I've moved your topic to the Scripting section so you can get better assistance. Link to comment
Frost.DEV Posted December 16, 2022 Author Share Posted December 16, 2022 1 hour ago, Vampire said: Hello @Frost.DEV I've moved your topic to the Scripting section so you can get better assistance. I solved can u close this topic? Link to comment
Recommended Posts