UPDATE
Using the default.lua script.
Quote: "
default_main(e)
PlayerDist=GetPlayerDistance(e)
if PlayerDist < 300 then
Prompt( " It works. " )
End
End
"
Only problem is that it does not work.
Have been using Notpad++ v 8.5 then went back to v8.1.9.3, Still the same result.
I can save it as v01_default.lua and this works.
I made a new default.lua script as above, but with MS notpad. and saved in another folder in the scriptbank. It works perfectly.
Will now try other scripts in root of scriptbank.
Further UPDATE
If I move the file into a folder then it works.
Just cant figure this out. Other scripts in scriptbank like the ai scripts, ammo.lua, bookcase.lua, coverzone.lua, door.lua and more, all seem to be working ok, except default.lua.
(Custom) Intel i7 3.3 Mhz. 16 GB fast ram. EVGA Nvidia 1050 Ti 4GB. Dell US27 2560 x 1440. Dell 24 1920 x 1080. Awesome.
Next G. Card EVGA GeForce GTX 970 Superclocked ACX 2.0 Gaming 4GB GDDR5 PCIe3.0 Graphics Card.
Would Like EVGA NVIDIA GeForce GTX 1080 8GB GDDR5X PCIe3.0 Graphics Card